﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace COFE.Core.Filter
{
    /// <summary>
    /// Match if hashcode is equal to the parameter.
    /// </summary>
    public class IDEntryFilter : IEntryFilter
    {
        public IDEntryFilter(Guid entryId)
        {
            _entryId = entryId;
        }

        private Guid _entryId;

        public bool Matches(IInternalFileSystemInfoExA entry)
        {
            return entry.GetHashGuid() == _entryId;
        }
    }
}
